<?php

  session_start();
  include "config.php";
  include "ALorder.php";

  if(isset($_SESSION["user"]))
  {
    include "$header";
    include "$body";
?>

<div style="position:absolute; top:0px; left:1px; border:0;">
  <span class="prevPage">Cancel Order:Search > </span>
  <span class="prevPage">Search Results > </span>
  <span class="prevPage">Confirm Cancellation > </span>
  <span class="page">Success</span>
</div>

<?php

  include "$H_co";
  
  if(isset($_POST["ok"]))
  {
      echo "<SCRIPT language='Javascript'>";
      echo "  window.location.href = 'main.php'";
      echo "</SCRIPT>";
  }

  echo "<p>Order No.<br><b>".$_SESSION["order_no"]."</b><br>";
  echo "made by Customer No.<br><b>".$_SESSION["customerID"]."</b><br>";


?>

has been successfully cancelled.<br>
A Cancellation Form has been successfully sent to the Warehouse and the Mail Order Department.<br>
The Cancellation Form will be sent to the Customer's delivery address soon.
<FORM name="ok" action="" method="post">
      <input name="ok" type="submit" value="OK">
</form>
</BODY>

<?php

  include "$footer";

  }

?>